package com.masterclient.app.modules.order.contract;

import com.eoner.baselibrary.base.BasePresenter;
import com.eoner.baselibrary.base.BaseView;
import com.eoner.baselibrary.bean.order.ConfirmOrderData;
import com.eoner.baselibrary.bean.order.OrderSendDeliveryBean;
import com.eoner.baselibrary.bean.order.SaleOrderDetailData;

import java.util.Map;

/**
 * 作者：sean
 * 创建时间：2017/7/28 13:40
 * 功能说明：
 */

public interface SaleOrderDetailContract {

    interface View extends BaseView {
      void showOrderDetail(SaleOrderDetailData dataBean);

      void confirm_order_success(ConfirmOrderData data,String sale_type, String buy_type);
      void confirm_order_failed(String msg);

      void checkGoodsSuccess(Map<String,String> map);
      void sendDeliverySuccess(OrderSendDeliveryBean bean);
      void operateSuccess(int type);
    }

    abstract static class Presenter extends BasePresenter<View> {

        @Override
        public void onStart() {

        }

        public abstract void getOrderDetail(String order_no);
        public abstract void confirm_order(String buy_product, String buy_type, String charge_account,String sale_type,String relation_order_id,String is_custody);
        public abstract void checkGoods(String order_id, String type);

        public abstract void sendDelivery(String order_id);
        public abstract void upReserve(String order_id);
    }
}